package com.foreknow.service;

import com.foreknow.bean.Guestbook;
import com.foreknow.util.Pagination;

import java.sql.SQLException;
import java.util.List;

public interface GuestbookService {
    /**
     * 添加方法
     * @param gb
     * @return boolean
     */
    public boolean save(Guestbook gb);
    /**
     * 查询留言
     */
    public List<Object> queyrInfo();

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean delInfo(int id);

/**
 * 分页查询留言信息
 *
 */
public Pagination getByPage(int pageSize,int pageNumber) throws SQLException;
}